<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php $this->headLink()->prependStylesheet($this->baseUrl() . '/css/s.css'); ?>
<?php echo $this->cssHelper() ?>
<?php if (isset($this->appIncludes['jquery'])) $this->headScript()->appendFile($this->appIncludes['jquery']); ?>
<?php if (isset($this->appIncludes['extjs'])) $this->headScript()->appendFile($this->appIncludes['extjs']); ?>
<?php if (isset($this->appIncludes['jdupa'])) $this->headScript()->appendFile($this->appIncludes['jdupa']); ?>
<?php echo $this->javascriptHelper() ?>

<?php echo $this->headScript(); ?>
<meta name="author" content="Mistrze" />
</head>
<body>
<div id="content">
  <h1>{name}CMS</h1>
  
  <!-- message box -->
  <?php if (isset($this->messageType)) { ?>
  <div id="message" class="<?php echo $this->messageType; ?>">
    <?php echo $this->message; ?>
  </div>
  <?php } ?>

  <!-- <h3><?php echo $this->translate('Main menu') ?></h3> -->
  <nav>
  <?php
    // $partial = array('common/nav.phtml', 'default');
    // $this->navigation()->menu()->setPartial($partial);
    // echo $this->navigation()->menu()->setOnlyActiveBranch(true);
    echo $this->navigation()->menu()->render();
  ?>
  </nav>

  <!-- <h3><?php echo $this->translate('Breadcrumb') ?></h3> -->

  <div id="breadcrumbs">
    <?php echo $this->navigation()->breadcrumbs()->render(); ?>
  </div>
  
  <div id="main">
  	<?php echo $this->layout()->content; ?>
  </div>
</div>
</body>
</html>